package top.mccat.filesystem.mapper;

import top.mccat.filesystem.bean.MyFile;

import java.util.List;

/**
 * @author JMY
 * @Description TODO
 * @Version 1.0.0
 * @Date 2023/2/22 9:33
 * @Created by JMY
 */
public interface FileMapper {

    /**
     * select file method
     * @param file file object
     * @return file list
     */
    List<MyFile> selectFile(MyFile file);

    /**
     * select file admin method
     * @param file file object
     * @return file list
     */
    List<MyFile> selectFileAdmin(MyFile file);

    /**
     * select one file method
     * @param file file object
     * @return file object
     */
    List<MyFile> selectSameFile(MyFile file);

    /**
     * insert file method
     * @param file file object
     * @return file insert amount
     */
    int insertFile(MyFile file);

    /**
     * delete file method
     * @param file file
     * @return delete amount
     */
    int deleteFile(MyFile file);

    /**
     * update file
     * @param file file object
     * @return
     */
    int updateFileRemark(MyFile file);
}
